public class WhileDemo16 {
    public static void main(String[] args) {
//        for (int i = 1; i <= 5; i++) {
//            for (int j = 1; j <= 1000; j *= 10) {
//                System.out.print(i * j + "\t");
//            }
//            System.out.println();
//        }

        for (int i = 1; i <= 5; i++) {
            int temp = i;
            for (int j = 1; j <= 4; j++) {
                System.out.print(temp+"\t");
                temp = temp * 10;
            }
            System.out.println();
        }
    }
}
